﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EMRView.Extensions.Command.StandardCommand.Insert
{
    public partial class Frm_AddEdit : Form
    {
        public Frm_AddEdit()
        {
            InitializeComponent();
        }

        public string EIndex
        {
            get
            {
                return txt_Index.Text;
            }
        }

        public string EName
        {
            get
            {
                return txt_Name.Text;
            }
        }

        public int EWidth
        {
            get
            {
                return int.Parse(nud_Width.Value.ToString());
            }
        }

        public bool IsTopBorder
        {
            get
            {
                return ckb_Top.Checked;
            }
        }


        public bool IsBottomBorder
        {
            get
            {
                return ckb_Bottom.Checked;
            }
        }


        public bool IsLeftBorder
        {
            get
            {
                return ckb_Left.Checked;
            }
        }

        public bool IsRightBorder
        {
            get
            {
                return ckb_Right.Checked;
            }
        }

        public bool PrintOnlyText
        {
            get
            {
                return ckb_PrintOnlyText.Checked;
            }
        }

        private void btn_Ok_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void btn_Cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
